import request from '@/utils/request'

const BASE_URL = '/admin/system/operLog'

export default {
  getOperLogPageInfo(page, limit, searchObj) {
    return request({
      url: `${BASE_URL}/${page}/${limit}`,
      method: 'get',
      params: searchObj,
    })
  },
  getOperLogById(id) {
    return request({
      url: `${BASE_URL}/get/${id}`,
      method: 'get',
    })
  },
  removeOperLogById(id) {
    return request({
      url: `${BASE_URL}/remove/${id}`,
      method: 'delete',
    })
  },
}
